enumerating oriented gene orders