DIRECTED POLYMERS IN A RANDOM MEDIUM : A VARIATIONAL APPROACH