coordinate descent using map