Adaptive 3D Localization of 2D Freehand Ultrasound Brain Images