ConnectedComponent: fixed hashvalue bug. Don't I remember doing this before?
Also getHashValue() -> hashValue()