Initialized U and V matrices with value 1.