Changed Integer parameters to Ints
Simple non-linear CG implementation w/ backtracking line search