added dealoc method to algorithm to free butter worth values that caused memory leaks
removed some warnings + cosmetic changes