Robot navigates indoors by tracking anomalies in magnetic fields