Support multivariate regression. Fixes #5.