add file loader
file to byte array and calculate the frequency