Handling borders in systolic architectures for perfect reconstruction for the 1-D discrete wavelet transform