Yongfei Ci had meticulously planned the attack for at least a week, even reducing to writing what Judge Heidi Ladd described as his "sadistic script."