some of the codes when I learn datastructure and algorithm