error
Revert "error"

This reverts commit def16e4cef93a8ecbec408236c6e54ccfd4484c4.
fixing
proper optimization of getting max and min
small fix
reorganizing of the project