FITspec: A New Algorithm for the Automated Fit of Synthetic Stellar Spectra for OB Stars