Main to test the complexity of an algorithm.