add sim_distance. 
disppointedly, find 3 bugs in P11