successful

the running time is O(n * n). Next version will degrade to O(n* lgn)