SameBytes elaborated, moved into util/