Create Ternary search.cpp