Offload matrix operations to shader/gpu

Signed-off-by: Josh Kilmer <srjek2@gmail.com>