Before I was simply flattening all the dependencies into a hash, but I needed the order too.  So now I store the order of the dependencies in oresult and the deduped list in result.