https://alandroidnet.com/related/binary stack tree