Binary Search now works , although I am not sure if my current memory handling way is the best :p