manuscript updated, add compute_mismatches code.