javascript utility library for performing matrix operations