converted bicubic scaling from java to scala