adding cnn and enn algorithms