using gauss-jordan partial pivot and attempting to tune it for my matrix format