initial commit, some code from Baysig.Utils