Add overlap check & cast functions.
Initial commit.
Added Base module.