Modified PowerMehod.java; Created RandomSamples