implemented queue or struct Triples, compiles