fixed type errors
type parameter with lower bound
optimized queue
ordered merge sort