rewrite of numcpp

the dimension is not a template parameter anymore