added debug profiling and made GregorianCalendar package private