Implemented User and Item-based CF functions in C++.