added an optional timer for both bubble sorting algorithms