Fixed a few other problems with the sha512 implementation, but it is still producing incorrect output.