Second Order Ensemble Langevin Method for Sampling and Inverse Problems