Ternary Characterisation of the Cantor Set