added uniform sampling
second variant of uniform sampling
refactoring and new vertex object added