Lagrangian submanifolds and dynamics on Lie algebroids