Functions to be stored

TODO: solve the problem with the heterogenous collection:
Routine -> Functions -> BasicBlocks -> Instructions