Moved quantile calculation to master node
Changed Main to make the Spark cartesian execution produce an appropriate number of partitions