Moved computeMeshResolution to pcl common

where it can be used by other programs. Also added an additional `computeMeshResolution` which accepts
both a point cloud and an indices vector.
`infinity` is a function, so missing braces here.