Use Dictionary instead of sparse array