Use reduce() to find boundaries in localcorr.

This is more efficient than sortByKey().
Merge pull request #4 from JoshRosen/localcorr-boundaries

Use reduce() instead of sortByKey() to find boundaries in localcorr