add unit-test firstly
add some base algorithms in py