test Program to compress and encode the data  file