A Function for Generating Nearly Balanced Binary Search Trees from Sets or Non-random Keys. - Richard A. Frost; M. M. Peterson (Softw. Pract. Exp., 1982)