The three leading candidates for New York City mayor have been making their case to lead America's biggest city.