added function calculating unsigned values from series of bytes