complete part of map function
complete basic function of map
Merge branch 'map'