Some codes for algorithms and datastructure.