New size method, corrected pointer logic in initZeromatrix