pub fn encode(start: usize, end: usize, target: usize) -> BitVec<u8, Msb0>
BBSE stack-based encoding: returns a BitVec representing the path