some classic algorithms realized by myself