use java 7 ARM (try-with-resources). Move Min Scalar Product solution into the framework.