First part of determinant function
Minor Math class changes