Added c++ bubble sort realization
Added smart pointer.