optimize map expansion speed (#56)
optimize paste (shift+insert) speed (#56)