added version of em with variable k
complete exploratory learning implementation