LBPH Algorithm