started ArrayTools and refactored Mapper to use it