Update pyramid.java