Adds better versions of the outer product routine that are 100% stable