Implementing a dummy binary algorithm (untested)