added vertices calculation
Merge pull request #3 from jmietola/dev

added vertices calculation