Initial commit for epoch finding method
Fixed max and min determination in robust mode