added logfile to gpu implementation to track mid-calculation progress. next to do: compute DIC and Gelman factors