OverlapNet: a siamese network for computing LiDAR scan similarity with applications to loop closing and localization