add convertTableToMap

for easier map creation