I need to implement a function up to specific signature using RefCell. The task is: given a list of nodes in binary tree at specific depth d derive the list of node