fixing a format mistake
adding more tests for linear and binary optimisation
adding new test files
optimizing and fixing a bug at binarySearch method