Added concept of roots of hierarchy
Added testing method to check when things are roots of the hierarchy
Added tests for roots