/**Set of methods used in Lectures on Complexity*/ public class BaseMethods { /**calculate the sum of squares of the first n integers*/ public static int squares1(int n){ int i=0; int sum=0; while (i