public boolean isRelated(int uid1, int uid2){
		boolean related = false;
		try {
			rStat.acquire();
			if(userRelations[(memberIdxs.get(uid1))] != null){
				HashMap<Integer, String> rels = userRelations[memberIdxs.get(uid1)];
				if(rels.containsKey(uid2)){
					related= true;
				}else
					related = false;
			}else
				related = false;
			if(userRelations[memberIdxs.get(uid2)] != null){
				HashMap<Integer, String> rels = userRelations[memberIdxs.get(uid2)];
				if(rels.containsKey(uid1)){
					related = true;
				}else
					related = false;
			}else
				related = false;
			rStat.release();
		} catch (Exception e) {
			System.out.println("Error in Rels");
			e.printStackTrace(System.out);
			System.exit(-1);
		}
		return related;		
	}