Naive Gaussian elimination