Refactor processSingleEpoch to add a base class

The new base class will be shared with processMultiEpoch
Add task to create a sorted index of star positions and tiles