Implementations of different numerical methods