added tries and heap