implements binary as fast as I can