Moved 'sweep' method into NSMutableArray category & generic-ized it.