Small changes to mahout util methods and mapping from policy to long