added implementation to the min coins problem
added javadoc