implemented BaselineDialog class and a function SpecMap::Baseline.