tries basic implementation

added tries basic implementation