Improved the Matrix.det() method from O(n\!) to O(n^3)