historical origins of detective fiction