Changed residual second derivativce implementation, added homogeneous 3d driver hom3d.cpp, additional arguments to selectSolverAndSolve method