Heterotic matrix string theory and Riemann surfaces