Base library for creating NN topology