Find Min and Max implementation

Added functions in Matrix to find the index of the min and max values