added step to third algorithm
added new Matrix methods to access columns and rows