readded 2 dimensional bin tree implementation