Calculating tripples, too slow