bubble sort completed with different types