Added support for corners to bivariate impl