Encoding Cortical Surface by Spherical Harmonics