Dependency manager with naive algorithm