Added quicker version of the dividing matrix, which used memcpy.