Added SwitchTable implementation based on HashTable

Added all methods in SwitchTable
Changed object type in HashTable createTable