initialization of parent matrix suppose max range of a node is up to 1000 if there are 1000 nodes than also length of jump matrix will not exceed 10
vector < vector < int > > jump ( 1000 , vector < int > ( 10 ) ) ;