Sync

Algorithm:
1. Heavy-light Decomposition
2. Binary Indexed Tree