Sketch of Distributed sorting in Scala