Commit after long days
Started priliminary structure of random subset sampling