Move HPMmatrix struct into header