tree structure using mongoid