Update ChangeDetection_Stan.R

The function stan wasn't using the model stored in "model" (it was self referencing to sample) and not working.
Merge pull request #9 from bnicenboim/patch-1

Fixed bug in ChangeDetection_Stan.R