WIP: adding test for polygon sorting algorithm