refactored parallelmergesort to handle a directory object that must have a size