Tiancheng Lou's submission of D-Dimensional MST | CodeChef