Improving Mapping and Localization using Deep Learning