Minimizing the Dirichlet energy over a space of measure preserving maps