A new algorithm for hip fracture surgery