Implement bin tree