Try hotels, libraries, free museums, department stores, the few Apple stores around town. Penn Station/Port Authority and Grand Central all have decent bathrooms.
McDonalds, Panera Bread, Chipotle are all chain restaurants that usually have restrooms. Restaurants with a packed outdoor seating section -- just stroll on in like you are one of the diners outside! Good luck!