complete simplealgorithm

complete simplealgorithm and its unit test