Using RAND_MAX in randomizing functions.
Using usigned long long int instead of int.
Added function to make subset from given vector.