Solution for Calculate Distance. Sadly currently not supported by gcc ><