add bin_reverse

reverses bits without allocating memory