Spimi implementation in php using reuters corpus. For course Comp479