1. maincode: the main program to call the functions.
2. randgen: including all the basical random number generators, such as normal, gamma distributions.
3. est_K: including the functions to estimate the number of K to obtain the population structure
4. est_beta: including the functions to estimate the association paramters beta's
