Merge pull request #42 from stanislaw/master

Better count of occurrences of each element in array (#40, #41).
Cleanup.
Add Geometry: separate section and first algorithm