bin tree implement memory test