added metric to calculate region areas and perimeters
added Rakefile for running tests not through maven to enable better error messages