added computBoundaryConditions fucntion
added implementation of the computeBoundar... method