this is an algorithm for packing circles