hierarchy in ecology