Development And Validation Of New Algorithms To Improve Contact Detection And Robustness In Finite Element Simulations