Comparison of Algorithms for collisions, contact and friction in view of Real-time applications