Creating Nested Lists from a List of Points Based on Proximity

X is a list of 32 points I want to create a nested_list from list x including 4 sublists two containing 6 elements and two sublists with 10 elements by using proximity.
@Mahdiyar

Moved to Scripting category as I think you will get more help there for this one.