Ocean developing: computeGradients, updateWeight and updateDual done; before refactor KVVector