some codes about data structure and algorithm