add em-algorithm files