New York City cop thinks fast, saves depressed mom from killing herself and baby