A mapreduce algorithm for generate a Prefix Scan tree