- Fixed generics of maximum finder, removed imgplus usage
- Did some general optimization