Made some simple utilities functions for byte arrays.