One number in that table is easy to get wrong: the scale.
C = 768 and H = 12. What do you divide each score by?
Each score is a dot product of two ddd-dimensional vectors, so scale by d\sqrt{d}d, the head size. The tests check against the 1/d1/\sqrt{d}1/d scale, so C\sqrt{C}C fails them.