Fix LD calculations for nucleotides.

Fixes #26.
Earlier changes to text should also fix #23.