Change N0_index to take a degree $p and return the start of the interesting region rather than the end.  Also swap LowerBound and UpperBound in it.  Associated changes.
Change N0_index to take a degree $p and return the start of the interesting region rather than the end.  Also swap LowerBound and UpperBound in it.  Associated changes.

LastOfTheCarelessMen/Vector