javaScript_problem bubble Sort algorithm || Binary search algorithm || count total duplicate element in array