Added FHT implementation and tests.