initial scheduler implementation

Signed-off-by: Boris Figovsky <borfig@gmail.com>