find the length of a diagonal of a rectangle