first version well ordered points solver...that works for low number of points