Matrix finite-gap operators