simple distributed bead sort implementation in Spark