Fixed bug in indexing for _polar_weights in CPUSolver