preprocessing function

Pre-process data to better learn Bayesian networks