Added Sample2 for bit array.

Some comments were edited
Added test for Sample1 and Sample3/
Sample2 was marked as correct on web-site, but seems to not working
correctly