In right triangle ABC, ∠C=90∘. Median ¯AM has a length of 1, and median ¯BN has a length of 1. What is the length of the hypotenuse of the triangle?