An automated search for compact high-velocity clouds in the Leiden/Dwingeloo Survey