A tree structure for Mongoid documents using the materialized path pattern and rational numbers for positioning and placement