Add a general determinant calculating method. Tested up to size 4x4.