some test codes for cute algorithms