today I learnt a lot again...
finally I made a struct array containing pointers to the previously created 2d arrays, so now can handle my pathfinder system more easily, e.g. by using the struct with a proper index as function call parameter ensuring easy access to those arrays by simultaneously running subroutines. and now memory allocation can be hold on minimal level. fine.