smal matrix-library