An algorithm to pick the perfect baby name