Heavy quark vacuum polarisation to three loops