Implements in Ruby in the matrix/vector class.