Changed matrix classes to use byte instead of int to cut donw on space.