It is the homework 7 for NCKU CSIE IKDD (Introduction to Knowledge Discovery and Data Engineering)