Fixed a bug in determining the range of the original sequence to create during expansion.  Expansion now creates identical output for the first hit of the test query in both the C and C++ versions.