A triangle Solver