Phase 3 : Task 2, part b

Completed till implementation of Li and Ui

Next updates:
1. Integrate the changes made by george for unique vectors and no. of
dimension fix
2. Implement phase 1 search
3. Implement phase 2 search