changed leaves indexing to relative indexing to prevent overflow
Merge pull request #9 from Aszarsha/master

changed leaves indexing to relative indexing to prevent overflow