Create an algorithm that uses Cramer's Rule (with determinants of matrices) to solve for the solutions of a system of linear equations. The code should work for an "n" number of variables.
You may use whatever data structure you want to hold the matrix and return the result
Note: Also, consider that a possible system can have no solutions and may have infinitely many solutions :), so, your solution should take account of this...
If this is the case, just print out or return "none" or "infinitely many".
Since this is code golf, smallest code wins...
EDIT: To make this more challenging, you cannot use a language's built-in matrix operations libraries.
Also, your algorithm DOES NOT have to deal how to get the input, just how to process the input and return the correct output. As said before, you can store this input in whatever structure.