fix order of shape functions

For the mapping of local DOFs to global DOFs to work, the shape
functions must be orderd in accordance to the ordering of the
verticies of the reference element, which is:

[0, 0], [1, 0], [1, 1], [0, 1]