The twig and the rock were simply distractions used to divert you from the real answer. Forget I ever mentioned them. All you need to do is fill the space between you with enough rope that it makes a pile so big that you can walk across it to the other pillar (remember I said you had an unlimited supply of rope).