fixing erase in GroupMatrix::Prune in Windows