Implement a sort based on assigning numbers to the different triple
patterns in the HSP paper, thus implementing Heuristic 1 and 4
Some documentation