This code was taken from: https://github.com/joeydumont/wignerSymbols/blob/master/src/wignerSymbols-fortran.f