Added a class for MACD. Not tested and not documented. Also changed so
that the parameters in EMA and SMA are generic. Hopefully it doesn't
change anything for anyone