$Q$ valued functions minimizing Dirichlet's integral and the regularity of area minimizing rectifiable currents up to codimension two