Hyperelliptic curves over finite fields and binary linear codes