Store data in tree and parallelize using a web worker