Improve and paralellize shrink-sphere algorithm