Coherent control using adaptive learning algorithms