add basics bubble sort for int and char array and add optimized bubble sort