A more elegant solution for collapsing reddit comment trees