- Implements byte array to int in a generic way

- Read data file per sample