adding 2 new methods
adding matrix.rb calculation test