Cube function and function for smallest from an int tuple size 3.