Final version of Laplacian filter assembler function