all root to leaf paths function added