Update README.md

removed specific function for depth & added generic function to find any max value