added solution 8.1, design a tack with get max operation.