added the algorithm layer to the spectralChart
lots of refactoring to use a map instead of a chart