Refactored coordinate descent