added extended boolean wikipedia distance