A block coordinate descent optimizer for classification problems exploiting convexity