Bug fix: nearest_larger solution failed in some cases

nearest_larger sample solution failed on inputs where the nearest_larger
number was at a distance > 1 from the input index, returned nil in error