LU det and gauss jordan wanted some optimisation as large-N profiling suggests these are fairly expensive