some test codes of algorithms to solve some questions