Cleaned up subdivision functions. Fixed midpoint in subdivision function. Octahedron unstable for large inputs.