Fixed cmake, parameterized grid and leaf size
Filter boolean added, grid and leaf are now arguments