use nnodes to represent the number of connecting nodes in one element.
The parameter "n_max_connect_nodes" is a very bad practise. We know examply how many nodes wo have in each element. Therefore move the place of initialization.