Initial commit of detector

Stand-alone detector, this commit should include all necessary files,
except for matlab built-ins.
More optional routines exist, for shallow water cases, but are not
included here.