There is no zero value check on the length of _input in addLeavesLPP(). The only side effects this has is that:
