Change double variable to Double.
Clearing some whitespace
Altered reset function of FilterCascase to set the previous output.
Added test cases