Improved PoB hashing algorithm