def populate(length): out = [] bst = BST() for i in range(0, length): n = random.randint(0, length) out.append(n) bst.append(n) return (out, bst)