Simulation of genetic systems X. Inversion polymorphism