Basic version of the mcsolve function and example. Need to double check if it actually works, and use parallel.