Implemented collaborative filtering for movies. Uses cleaner code for J and grad compared to other previous usages.