Balanced and minimal cost tree structures in computer sorting and searching: A study of some algorithms