Cleaned up undefs
Optimized one bit operation in MAJ function of sha hashes