add simple algorithms

add simple practice algorithms