The first call of adjacent_find() searches for equal values. The second form uses doubled() to
find the first element for which the successor has the double value. The program has the following
output:
coll: 1 3 2 4 5 5 0
first two elements with equal value have position 5
first two elements with second value twice the first have pos. 3