Added get categories hierarchy method