Often my OpenELEC Raspberry Pi would get stuck at pre-boot. The culprit turned out to be a faulty SD card connector. Unclipping the connector pins (as suggested in the elaborate diagnostic wiki on eLinux.org) and soldering on an alternate low-profile SD card adapter (that I ordered from crazypi.com) fixed it.
When I had the requirement to remove duplicate items from a very large array, I found out that the classic method to be not optimized as it took a pretty long time than desired. So, I devised this new algorithm that can sort a large array in a fraction of the original time.