added smirnov inverse sampling