[Refac]
* killed dead code in cnn
* added ibasiclayer for interface sharing