Hierarchical Joint Scene Coordinate Classification and Regression for Visual Localization