Fixed off by one error in convergence_monitor and reserved size of residual array to avoid reallocations
Fixed off by one error in convergence_monitor and reserved size of residual array to avoid reallocations

sdalton1/cusplibrary,cusplibrary/cusplibrary,sdalton1/cusplibrary,cusplibrary/cusplibrary,cusplibrary/cusplibrary,cusplibrary/cusplibrary,sdalton1/cusplibrary,sdalton1/cusplibrary