Update filter.v

the width and height of kernel matrix are changeable.