Move to regression, util and gradient packages