DEV: Add Generic Class for Newton Raphson algorithm