Update ualgebra.js

fixed cofactor matrix calculation.