move matrix functions to util
es2gears.c contains a tiny matrix-handling lib. Let's rip it our an stuff it in the util library, so we can reuse it elsewhere!
es2gears.c contains a tiny matrix-handling lib. Let's rip it our an stuff it in the util library, so we can reuse it elsewhere!