Create masking.c

code works but how to calculate number of tag or offset bits?
set is from number of sets