wow thanks for all the replies...
i will make it more clear... The elements are not sorted, the elements are not integers or floats, its all strings (having less than 300 charecters), and in my case i can define best as "It should not take much RAM and it should be performed in a minimal time possible (even if i want to compromise among one i would say even if it takes a second or two more it should not consume much RAM)"