Faster squared euclidean distance calculation

Ah great @mcabbott !

Ok I’m missing something subtle in the syntax here - that code looks the same to me in calc3 and calc4? Apart from the sqrt whats different in calc4 ?