Added pieceFromAlgebraic.