THIS COMMIT IS INCOMPLETE. DOWNLOAD THE PREVIOUS COMMIT FOR WORKING PROGRAM.
Currently in the process of devising a breaking condition for polygamma. Pushing this commit merely to save the progress.