Added bitstring and hamming distance support as well as DCT cleanup.