added log4j configuration
get minimum element from a reversed sorted array