Karatsuba algorithm does not work in PHP