isBestTriplet buffer inits to 0. Reindentation