Quantum Trajectories: Optimized Basis Functions for Coupled Channel Equations