Remove matlab implementation