Add examples of union find and suffix arrays