bintree: add dump operation