day 11: Only check legality on changed floors
day 11: Only check legality on changed floors

This is a minor optimisation, seems to cut running time about 10%.

Since legal? is now on a floor, for clarity I put it in a Floor module
again even though they both refine Array.

petertseng/adventofcode-rb-2016,petertseng/adventofcode-rb-2016