Lizards are capable of problem-solving, study shows