Massive  performance update to kernel

Improved calculating log(long) by 11-12x. Improved modulo multiplication
method