Update trist.cpp