create a hash from arrays