changed ScatterRange to use VecSetValues instead