correct compression functionality and implement test method
add mask to compressed string to find out the end length.