Update collaborative_filtering.py with Minkowski