add mapping functionality to the map_axis function, add permutation.py