Implemented bubble and optimized bubble sorts

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>