pre-simulation setup for Prim

* dynamic allocation of Prim class
* filling Prim object with FibNodes and edges