[Updated] updated the algorithm of item similarity
[Updated] added the declaration for jdk 1.6