Changed binary tree insertion algorithm to be iterative instead of recursive.