modified vector; improved simulated input performance

* in vector.h: bsearch now returns the actual internal pointer; added const_array method to return the internal array pointer without invalidating the sorted state
* in vector.c: updated find to accomodate new bsearch signature
* in console_viewer.c: keep input sorted and use bsearch on it to find an input that happens on the current frame, then discover the range of inputs for the current frame; this is much better than going through all of them linearly like I was doing before
bump version