A tree structure for Mongoid documents using the materialized path pattern