First Version with NexPermutation method added.