Vision Algorithms for Formation Flight and Aerial Refuelling, with Optimal Marker Labelling