Non-working version of cosine based document filtering added