 acc
                                }, 0);
                                return sum / columnValues.length
                            }
                            if (cell.colIndex === 2) {
                                return 'Total'
                            }
                        }
                    }
				});
				console.log(performance.now() - start);

				window.datatable = datatable;
			}

			window.switchToTreeView = function () {
				datatable.destroy();
				buildTreeData();
				makeDat