Improve sorting of BED files to remove memory issues on large files. Use memory mapped files and clean up sorting code