Fixed issue #214, #236 and #243
Fixed issue #235
Fixed issue #237
Merge pull request #246 from Nyholm/issue-237

Fixed issue #237
Merge pull request #245 from Nyholm/issue-235

Fixed issue #235
Merge pull request #244 from Nyholm/issue-236

Fixed issue #214, #236 and #243
Merge pull request #242 from Nyholm/master

[Minor] Fixed typos
Change O(lg n) with lower-case n.
Merge pull request #250 from Nyholm/patch-1

Change O(lg n) with lower-case n