added documentation to apache_matrice.rb