If the diagonals of a parallelogram are equal, then show that it is a rectangle