Behavioural flexibility : evolutionary past and its role in a changing world