Generate random Binary tree with leaf algorithm