updated sort-bed code to remove clang++ warnings.