removed signal processing toolbox dependency according to Joakim's instructions

Patch to remove dependency on signal processing toolbox