Adding compute_cosine_distance.rb for HW 4.