Speeding up MultiSet