The Implementation of Markov Chain Monte Carlo on the Study of Star Cluster Membership in Open Cluster NGC 3766 and Globular Cluster 6366