Make library work with 32x32 matrix