Setting leaf distance
Merge pull request #408 from lev-kuznetsov/master

Setting leaf distance