Fix building group headers in pivot in case of 3 or more yDymensions
Remove not needed parameter in tree build in pivot