Matrix math utility for JavaScript.