Index select


from soumith,

hey, thanks for this PR. Can you make three changes.

remove the dependency for "socket" in indexSelect_speedCompare.lua by using os.clock() instead
add a test to check correctness (i.e. compare the CPU indexSelect to GPU indexSelect and make sure they are the same result).
move the indexSelect_speedCompare.lua test into test.lua