Precursors of logical reasoning in preverbal human infants