Table.keyOf=function(m,W)for m,h in pairs(m)do if h==W then return m end end return nil end

Table.keyOf = function (tbl, value)
	for index, obj in pairs(tbl) do
		if obj == value then
			return index
		end
	end
	return nil
end
