Changed some methods.

Will need to specialize determinant function to avoid infinite recursion.