find the diagonal of a square