Fix the createNode function. Started the insertSortedArray function.
Finished insertSortedArray and wrote test for it. Test passed.