library for matrices