Added calculation of lft and rgt.

I brogrammed in Starbucks yet on an Apple device, and I liked it, am I gay?