fixed bug in function megahash(), i is not a parameter to aux()