Implemented own Set data structure.