Triangle solved in place