new method for checksum that takes byte array object.