working on calculate_quad_error
Finished implementing calculate_quad_error. Not tested yet
Priority queue almost done