Replacing BIDArray implementation with simple_vector, which is identical.
Fixing compilation on MSVC 2005. Had to change many types in vector due to 32-bit system.
Moving ilog2_floor/ceil to utils.h and replace all occurrances of log2_floor/ceil with ilog2s.