Change specifications and the way of validation

write(binary_array)
checkValidPosition()
added to variable length