Added generic filter application, and median, gaussian and laplace filtering
function for double 2D table creation and deletion (used for filter creation)
added some cast to avoid warning on codeblock 12