Modify the implementation of multiwayjoin according to Afrati's
ICDE13 paper. Reorder the vertices according to the hash value rather
than degree. 

Change-Id: I07e5391073ba7cae7399c082226cac63a121411c