Added terminal commands and c++ "? :" exaple.
Added ternary search