added chopcol for chopping the first column off a matrix and returning the rest