Implemented groupBy and span in ffi. Added group'.