Added function numUniques
Added function search
Added function encode
Added function decode