Added instanceDependencies function in lazyInstMgr

This function lists all instances that one instance recursively depends upon