Android application for calculation tree height using various functions