Fix : Directree

- Fix some errors on directory moving
- Fix BinarySearch library ( start and end index out of range )