private void calculateSimilarities() {
		for (Integer user1 : userRatedMovies.keySet()) {
			for (Integer user2 : userRatedMovies.keySet()) {
				if (user1 > user2) {

					double sim = computeSimilarity(user1, user2);

					if (similarities.containsKey(user1)) {
						similarities.get(user1).put(user2, sim);
					} else {
						LinkedHashMap<Integer, Double> s = new LinkedHashMap<Integer, Double>();
						s.put(user2, sim);
						similarities.put(user1, s);
					}

					if (similarities.containsKey(user2)) {
						similarities.get(user2).put(user1, sim);
					} else {
						LinkedHashMap<Integer, Double> s = new LinkedHashMap<Integer, Double>();
						s.put(user1, sim);
						similarities.put(user2, s);
					}
				}
			}
		}
	}