Replaced NSMutableSet with a plain C array (should fix Issue #5)