bmdistr.erl: initial commit