Improved col_sums, row_sums and added sum function

o Matrix has now a sum function which calculates the sum of all cells