Add in place vector permute

Add an in place vector permute where the map is the same size as the
vector being permuted.  It is called with the call purmute(map,vec).