Matrix algebra for various programming languages