revised monte carlo function to produce two types of mean square error, add marker inside loops