matrix tools coming from https://math.nist.gov/javanumerics/jama/ Used by IAmHaggler SouthamptonAgent and some others