Added level traversal and finding the least deep leaf node