Great success! Cofactor now works!
Coming up: Matrix inversion
Changed package/folder structure so that extended is now split into types and storage for things like stacks.