Added basic mathematical operations for slices and scalars.

* Added functions for adding, subtracting, multiplying, and dividing a
  slice and a scalar value.