Code for encoding Laplace-distributed variables (doesn't work).