Fix stack for very small trees (1,2,3 elements) #61