Oops, bug fix.

bufferA was calculated incorrectly after moving the unique values in A over to the reserved buffer. This was caused by updating Range to be [start, end) rather than [start, start + length). I should probably get around to adding regression testing.