Fix building group headers in pivot in case of 3 or more yDymensions
Remove not needed parameter in tree build in pivot
More accurate fix when building the group headers in pivot.