Serial Reimann implementation