Implementation of some usually used algorithm and data structure