Added function closestval

Finds the value (and index) of the element in a matrix thats closest to
a certain value. Works very similarly to max or min.
Began work on segmentScene1

provides a base for selecting the indices where segmentation will occur.