update Matrices to use a float arrays rather than individual floats.

Signed-off-by: Nick Minkler <sleaker@gmail.com>