diagonalize vectors