Update

Partially fixed quaternion correlation. The result is now correct but
is implemented using a slow, brute-force algorithm. This algorithm
takes about three times longer to rum for 64 sample windows, and the
discrepancy grows exponentially with input size. An untested C-Language
implementation is included just for funzies.