Optimizing Bit-Vector Algorithm for Anti-Pattern Detection