Algorithmic Approaches To High Speed Atomic Force Microscopy