Corn and beans end the week higher