Create getPyramids.m