Created the function wich parse the CIB and return all the node of a certain type. For exemple we can get all the primitives decalred in the cib.