Added function getAllFriends in UserModel to get all friends of this user