Multiple iterations working and some code cleaning
- code separated in functions
- we can now apply many DWT iterations