Updated binary_matrix.rb