Php implementation of sets using a multi-dimensional array.