add clip function to Common
Merge branch 'master' of https://github.com/CRPropa/CRPropa3