fix notes except check is binary tree
added tests
Merge pull request #1 from crazyministr/fix_notes_1

Fixed all notes