Distance between Two Points Using Pythagoras Theorem