Balanced binary tree code for scientific applications - CPC, Mendeley (Mendeley, 1989)