using Utils.appendArray in Nearphase
nearphase optimizations
decreased number of iterations in circles example