Three-dimensional groundwater flow and contaminant transport in medium scale highly heterogeneous environments