New York City is among the most expensive cities in the world. Here is one family’s strategy for making it work.