slight refactor on GetMinor to increase efficiency, fix on GetDeterminant but it still isn't working properly