made the change to cacheSolve to take care of non-square and for those matrices its determinants are 0s.