add permutation and machine learning homework1