Add short notes section to describe principle of algorithm