Implemented sssp a and bitmask get answer