20141015: Preliminary completion of HW8, will check it later. (Need to confirm p-value for perm test in question 4)