Copy function that copies another type of matrix.
This is used to copy another class of matrix (e.g. matrix double) to this (integer) matrix class