implementation of a suggest_tree data structure written in rust