using Theta(lgh) heights for height buckets