implement part of the machine

* in machine.h/c: implement some methods; add method set_input_mask; get_active_sprites uses an output vector; input bits are enum'd;
* in vector.h/c: add size method; asserts
* TODO: rename bit_t to input_bit_t
changed bit_*t -> input_bit_&