added solution to UVa 10718-Bit Mask