Added question ranking algorithm