Add minMatrix library