Added prime factorisation of ranges
Add point angle comparison